package com.schoolET.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "AdminSelectVO对象", description = "管理员分页查询")
public class AdminSelectVO {

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("位置")
    private String position;

    @ApiModelProperty(value = "页数",required = true)
    private Integer pageNum;

    @ApiModelProperty(value = "条数",required = true)
    private Integer pageSize;

    public Integer getPageNum() {
        return (this.pageNum == null || this.pageNum < 1) ? this.pageNum = 1 : this.pageNum;
    }

    public Integer getPageSize() {
        return (this.pageSize == null || this.pageSize < 1) ? 5 : this.pageSize;
    }
}
